﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Web.Services;
using System.Web.Services.Protocols;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.BLL;
using KPIS.GERP.GFMS.MODEL;

namespace KPIS.GERP.GFMS.SERVICE
{
    /// <summary>
    /// Summary description for FIM_Cheques
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class FIM_Cheques : System.Web.Services.WebService
    {
        IBLL_FIM_Cheques bll = new B_FIM_Cheques();

        [WebMethod]
        public List<M_FIM_Cheques> GetFull(string bank_acc_seq, string cheque_book_seq
            , string cheque_status)
        {
            return (List<M_FIM_Cheques>)bll.GetFull(bank_acc_seq
            , cheque_book_seq, cheque_status);
        }
        [WebMethod]
        public List<M_FIM_Cheques> GetList(string bank_acc_seq, string pay_seq
            , string cheque_book_seq, string cheque_status)
        {
            return (List<M_FIM_Cheques>)bll.GetList(bank_acc_seq, pay_seq
            , cheque_book_seq, cheque_status);
        }
        [WebMethod]
        public M_FIM_Cheques GetInfo(string seq)
        {
            return bll.GetInfo(seq);
        }

        [WebMethod]
        public void Insert(M_FIM_Cheques info)
        {
            bll.Insert(info);
        }
        [WebMethod]
        public void Update(M_FIM_Cheques info)
        {
            bll.Update(info);
        }
        [WebMethod]
        public void Delete(M_FIM_Cheques info)
        {
            bll.Delete(info);
        }
    }
}
